from django import template
from django.shortcuts import reverse
from web import models

register = template.Library()


@register.simple_tag
def string_just(num):
    if num < 100:
        num = str(num).rjust(3, "0")

    return "#{}".format(num)